//
//  FriendTableViewCell.m
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/13.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import "FriendTableViewCell.h"

@implementation FriendTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    _postNumber = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/3, 70)];
    [_postNumber setTitle:@"2\n内容" forState:UIControlStateNormal];
    [_postNumber setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _postNumber.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Thin" size:16];
    _postNumber.titleLabel.textAlignment = NSTextAlignmentCenter;
    _postNumber.titleLabel.numberOfLines = 0;
    
    _following = [[UIButton alloc]initWithFrame:CGRectMake(_postNumber.llz_right, 0, SCREEN_WIDTH/3, 70)];
    [_following setTitle:@"4\n关注" forState:UIControlStateNormal];
    [_following setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _following.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Thin" size:16];
    _following.titleLabel.textAlignment = NSTextAlignmentCenter;
    _following.titleLabel.numberOfLines = 0;
    
    _follower = [[UIButton alloc]initWithFrame:CGRectMake(_following.llz_right, 0, SCREEN_WIDTH/3, 70)];
    [_follower setTitle:@"4\n粉丝" forState:UIControlStateNormal];
    [_follower setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    _follower.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Thin" size:16];
    _follower.titleLabel.textAlignment = NSTextAlignmentCenter;
    _follower.titleLabel.numberOfLines = 0;
    
    [self addSubview:_postNumber];
    [self addSubview:_following];
    [self addSubview:_follower];
    
    return self;
}

@end
